<%@ page contentType="text/html;charset=UTF-8"%>
<%@ page
	import="org.springside.modules.security.springsecurity.SpringSecurityUtils"%>
<%@ include file="/message/taglibs.jsp"%>
<%@ include file="/message/session.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>政策风险指数软件--用户管理</title>
<%@ include file="/message/meta.jsp"%>
<link href="${ctx}/stylesheet/default.css" type="text/css" rel="stylesheet" />
<script src="${ctx}/javascript/jquery.js" type="text/javascript"></script>
<script src="${ctx}/javascript/table.js" type="text/javascript"></script>
</head>
<body>
<div id="message"><s:actionmessage theme="mytheme" /></div>
<form id="mainForm" action="user.action" method="post">
<div id="filter">登录名: <input type="text" name="filter_EQS_name"
	value="${param['filter_EQS_name']}" size="9" /> 姓名: <input
	type="text" name="filter_LIKES_nameCh"
	value="${param['filter_LIKES_nameCh']}" size="9" /> <input
	type="button" value="搜索" onclick="search()" /></div>
<input type="hidden" name="page.pageNo" id="pageNo"
	value="${page.pageNo}" /> <input type="hidden" name="page.orderBy"
	id="orderBy" value="${page.orderBy}" /> <input type="hidden"
	name="page.order" id="order" value="${page.order}" />
<div id="listContent">
<table id="listTable" width="100%" border="0" cellpadding="0"
	cellspacing="0" style="border-color: #D4D0C8 ">
	<tr>
		<th><a href="javascript:sort('name','asc')"><b>登录名</b></a></th>
		<th><a href="javascript:sort('nameCh','asc')""><b>姓名</b></a></th>
		<th><a href="javascript:sort('valid','asc')"><b>是否有效</b></a></th>
		<th><b>角色</b></th>
		<th><b>操作</b></th>
	</tr>
	<s:iterator id="user" value="page.result">
		<tr>
			<td>${name}&nbsp;</td>
			<td>${nameCh}&nbsp;</td>
			<td><s:if test="%{#user.valid}">有效</s:if><s:else>无效</s:else>&nbsp;</td>
			<td>${roleNames}&nbsp;</td>
			<td>&nbsp; <a href="user!show.action?id=${id}">查看</a>&nbsp; <a
				href="user!input.action?id=${id}">修改</a>&nbsp; <a
				href="user!delete.action?id=${id}">删除</a></td>
		</tr>
	</s:iterator>
</table>
</div>
<div id="footer">第${page.pageNo}页, 共${page.totalPages}页 <a
	href="javascript:jumpPage(1)">首页</a> <s:if test="page.hasPre">
	<a href="javascript:jumpPage(${page.prePage})">上一页</a>
</s:if> <s:if test="page.hasNext">
	<a href="javascript:jumpPage(${page.nextPage})">下一页</a>
</s:if> <a href="javascript:jumpPage(${page.totalPages})">末页</a> 
<a href="user!input.action">增加新用户</a></div>
</form>
</body>
</html>
